package com.fujica.db_operation.contrller;

import com.fujica.db_operation.server.IClassService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ClassController
 * @Description TODO
 * @Author admin
 * @Date 2020/6/19 11:53
 * @Version 1.0
 **/

@RestController
@RequestMapping("class")
@Slf4j
public class ClassController {

    @Autowired
    private IClassService iClassService;

    @GetMapping("/listCno")
    @ResponseBody
    public List<Long> listCno() {
        return iClassService.listCno();
    }
}
